package com.example.tonyzxb.autoemulator.receive;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

import com.example.tonyzxb.autoemulator.MainFragment;

public class AmapReceiver extends BroadcastReceiver {
    public static final String TAG="AUTO Emulator Receiver";
    public AmapReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        String msg = MainFragment.createMsg(intent);
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
        
        Log.e(TAG,msg);
    }
}
